<script setup>
   
import { defineProps } from "vue"

defineProps({
    show:Boolean,
    text:{
      type:String,
      default:"处理中..."
    }
})

</script>

<template>
  <van-overlay :show="show" @click="show = false">
    <div class="wrapper" @click.stop>
      <van-loading size="34px" color="white">{{ text }}</van-loading>
    </div>
  </van-overlay>
</template>

<style scoped>
.wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
</style>
